package com.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import feign.Contract;
import feign.Logger;

@Configuration
public class FooConfiguration {
	
	/**
	 * Feign默认使用SpringMvcContract的契约
	 * 这里使用Feign自己的契约
	 */
	@Bean
    public Contract feignContract() {
        return new feign.Contract.Default();
    }
	
	/**
	 * 打印feign全部的日志
	 */
	@Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }

}
